import request from '@/utils/request'

export const getCommunityAll = (params) => {
    return request({
        url: '/community',
        params
      })
}
//新增
export const addCommunityAll = (data) => {
    return request({
        method:'post',
        url: '/community',
        data
      })
}
//删除
export const delCommunityAll = (id) => {
    return request({
        method:'delete',
        url: '/community/' + id,
      })
}
//回显
export const reviewCommunityAll = (id) => {
    return request({
        method:'get',
        url: '/community/' + id,
      })
}
//修改
export const editCommunityAll = (data) => {
    return request({
        method:'put',
        url: '/community/' + data.id,
        data
      })
}